<?

session_start();

include_once("../../Misc.php");
include_once("../../classCol/UID.php");
include_once("../../classCol/classOracleDb.php");
require("../models/fetchers.php");

$COracle = new oracleDb;
$COracle->init($_SESSION["ORCL"],
               $_SESSION["OPASS"],
               $_SESSION["SID"],
               _NO_COMMENT);

$srcDbRate = "MST_CURRENCY_RATE";

if($COracle->connect()){

  fetchRate($COracle,
            $_POST["srcSymbol"],
            $srcDbRate,
            $theRate);

  echo  $theRate;
}else{

  return "****";
}

?>